<template>
  <!-- 底部导航组件 -->
  <div class="main">
    <van-tabbar v-model="active" active-color="red" :route="true">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="bookmark-o" to="/topic">专题</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/category">分类</van-tabbar-item>
      <van-tabbar-item icon="shopping-cart-o" to="/cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="contact" to="/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'BottomNavigation',
  data() {
    return {
      active: 0
    }
  },
  methods: {}
}
</script>

<style lang="less" scoped>
.main {
  padding-top: 15%;
}
</style>